﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Netfraction.Network.Protocol.BASE.Factory
{
    public class FactoryRCM : ProtocolMessageFactory
    {
        public enum FactoryRCMParameterEnum : int
        {
            Protocol = 0,
            Token = 1
        }

        public override ProtocolMessage Create(ProtocolMessage.MessageTypeEnum messageType, Dictionary<int, object> parameters)
        {
            ProtocolMessage proto = new ProtocolMessage(messageType, ProtocolFeatureBASE.FeatureActions.ActionRCM);

            proto.Parameters.Add(new ProtocolParameter(parameters[(int)FactoryRCMParameterEnum.Protocol].ToString()));

            proto.Parameters.Add(new ProtocolParameter(parameters[(int)FactoryRCMParameterEnum.Token].ToString()));

            return proto;
        }
    }
}
